package com.qaml.mes.device.vo.eqp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName CheckArchiveVO
 * @Description 点检归档展示
 * @Author leikai
 * @Date 2024/3/11 0011 14:45
 * @Version 1.0
 */
@Data
@ApiModel(value="check_archive对象", description="点检归档展示")
public class CheckArchiveVO implements Serializable {

    private static final long serialVersionUID = 3819280774925184711L;

    /**
     * 年月  yyyy-MM
     */
    @ApiModelProperty(value = "年月  yyyy-MM")
    private String yearMonth;
    /**
     * 点检状态列表
     */
    @ApiModelProperty(value = "点检状态列表")
    private List<CheckStatusVO> checkStatusList;

    @Data
    public static class CheckStatusVO implements Serializable {

        private static final long serialVersionUID = -6319174779827361588L;

        @ApiModelProperty(value = "状态")
        private String status;

        @ApiModelProperty(value = "状态描述")
        private String info;

        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "日期")
        private Date date;
    }
}